package edu.whcp.comp2301.mapper;

import edu.whcp.comp2301.pojo.Comment;
import edu.whcp.comp2301.pojo.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    public List<Comment> getAllComments();

    public News getNewsById(String id);

    public void checkComment(@Param("status") String status,@Param("id") String id);

    public Integer delComment(@Param("idList") List<String> idList);

    public List<Comment> getComm(@Param("id") String id);

    public Integer addComment(Comment comment);
}
